package com.yuebao.config;

//import com.yuebao.api.FundProductionService;
//import org.apache.dubbo.config.annotation.DubboReference;
//import org.springframework.context.annotation.Bean;
import com.yuebao.utils.CacheClient;
import com.yuebao.utils.IDWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

import javax.annotation.Resource;

@Configuration
public class BeanConfig {
    
    @Resource
    StringRedisTemplate  stringRedisTemplate;
    
    @Bean
    public CacheClient createCacheClientBean(){
        return  new CacheClient(stringRedisTemplate);
    }
    
    @Bean
    public IDWorker getBean(){
        return new IDWorker(1,1);
    }

}
